import request from '@/utils/request'

// 查询价格明细列表
export function listPdetails(query) {
  return request({
    url: '/funct/pdetails/list',
    method: 'get',
    params: query
  })
}

// 查询价格明细详细
export function getPdetails(id) {
  return request({
    url: '/funct/pdetails/' + id,
    method: 'get'
  })
}

// 新增价格明细
export function addPdetails(data) {
  return request({
    url: '/funct/pdetails',
    method: 'post',
    data: data
  })
}

// 修改价格明细
export function updatePdetails(data) {
  return request({
    url: '/funct/pdetails',
    method: 'put',
    data: data
  })
}

// 删除价格明细
export function delPdetails(id) {
  return request({
    url: '/funct/pdetails/' + id,
    method: 'delete'
  })
}
